Optimal. Leaf size=26 \[ \frac {b \tan (e+f x)}{f}-\frac {(a+b) \cot (e+f x)}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 26, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {4132, 14} \[ \frac {b \tan (e+f x)}{f}-\frac {(a+b) \cot (e+f x)}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 4132
Rubi steps
\begin {align*} \int \csc ^2(e+f x) \left (a+b \sec ^2(e+f x)\right ) \, dx &=\frac {\operatorname {Subst}\left (\int \frac {a+b+b x^2}{x^2} \, dx,x,\tan (e+f x)\right )}{f}\\ &=\frac {\operatorname {Subst}\left (\int \left (b+\frac {a+b}{x^2}\right ) \, dx,x,\tan (e+f x)\right )}{f}\\ &=-\frac {(a+b) \cot (e+f x)}{f}+\frac {b \tan (e+f x)}{f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 36, normalized size = 1.38 \[ -\frac {a \cot (e+f x)}{f}+\frac {b \tan (e+f x)}{f}-\frac {b \cot (e+f x)}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.93, size = 39, normalized size = 1.50 \[ -\frac {{\left (a + 2 \, b\right )} \cos \left (f x + e\right )^{2} - b}{f \cos \left (f x + e\right ) \sin \left (f x + e\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.24, size = 28, normalized size = 1.08 \[ \frac {b \tan \left (f x + e\right ) - \frac {a + b}{\tan \left (f x + e\right )}}{f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.92, size = 43, normalized size = 1.65 \[ \frac {-a \cot \left (f x +e \right )+b \left (\frac {1}{\sin \left (f x +e \right ) \cos \left (f x +e \right )}-2 \cot \left (f x +e \right )\right )}{f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.34, size = 26, normalized size = 1.00 \[ \frac {b \tan \left (f x + e\right ) - \frac {a + b}{\tan \left (f x + e\right )}}{f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.21, size = 28, normalized size = 1.08 \[ \frac {b\,\mathrm {tan}\left (e+f\,x\right )}{f}-\frac {a+b}{f\,\mathrm {tan}\left (e+f\,x\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (a + b \sec ^{2}{\left (e + f x \right )}\right ) \csc ^{2}{\left (e + f x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________